<%@ page language="java" contentType="text/html; charset=utf-8"  pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<script type="text/javascript">
       
       var queryVo = ${queryVo};
       
       queryTotal.selectList("corpId",1);
       //queryTotal.selectList("deptId",2);
       queryTotal.selectList("operatorId",3);    
       
</script>

<div id="page-content" class="page-content">
		<div class="monitor">
			<form id="queryTotalForm">
				<div class="monitorLeft">
					<div class="form-group">
						<label class="col-sm-4 control-label">机构：</label>
						<div class="col-sm-7 ">
							<div class="pr">
								<select name="corpId" id="corpId"  class="form-control input-sm"></select>
							</div>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-sm-4 control-label">业务员：</label>
						<div class="col-sm-7 ">
							<div class="pr">
								<select name="operatorId" id="operatorId"  class="form-control input-sm"></select>
							</div>
						</div>
					</div>	

					
					<div class="form-group dateContainer">
						<label class="col-sm-4 control-label">开始时间：</label>
						<div class="col-sm-7 ">
							<div class="pr">
								<input id="beginTime" name="beginTime" value="<fmt:formatDate value='${queryVo.beginTime }' pattern='yyyy-MM-dd' />" class="form-control datepicker" type="text" onclick="WdatePicker({maxDate:'#F{$dp.$D(\'endTime\')||\'5020-01-01\'}'})"/>							
							</div>
						</div>
					</div>
					
					<div class="form-group dateContainer">
						<label class="col-sm-4 control-label">结束时间：</label>
						<div class="col-sm-7 ">
							<div class="pr">
                                  <input id="endTime" name="endTime" value="<fmt:formatDate value='${queryVo.endTime }' pattern='yyyy-MM-dd' />" class="form-control datepicker" type="text" onclick="WdatePicker({minDate:'#F{$dp.$D(\'beginTime\')}',maxDate:'5020-10-01'})"/>
							</div>
						</div>
					</div>	

				</div>

				<div class="monitorRight">
					<a href="javascript:void(0);" class="btnSearch" onclick="queryTotal.pageAgainPrint();">查询</a> 
				    <!-- <a href="javascript:void(0);" onclick="queryTotal.exportlist();" class="btnSearch">导出</a>  -->
				</div>

			</form>
		</div>
		<div class="clearfix"></div>

		<div class="portlet-body">
			<div class="table-scrollable">
				<table class="table table-condensed flip-content">
					<thead class="flip-content">
						<tr>
						    <th width="8%">机构名称</th>	
						    <th width="8%">业务员</th>		
							<th width="10%">查询用户</th>
							<th width="10%">用户证件</th>
							<th width="10%">证件号码</th>
							<th width="10%">补打原因</th>
							<th width="12%">补打时间</th>
							<!-- 统计结果列表内容包括机构、部门、业务员名称、用户名、成功/失败、总数、成功比例、详细情况、合计 -->
						</tr>
					</thead>
					<tbody id="select_tbody">
					   <c:if test="${result.code eq 'SUCCESS' }">
					     <c:forEach items="${result.data.rows}" var ="row" varStatus="status">
						     <tr>
								<td width="8%" class="">${row.corpName }</td>	
								<td width="8%" class="">${row.operatorAccount }</td>						
								<td width="10%" class="">${row.userName }</td>
								<td width="10%" class="">${row.cardName }</td>
								<td width="10%" class="">${row.cardNum }</td>
								<td width="10%" class="">${row.note }</td>
								<td width="12%" class=""><fmt:formatDate value="${row.updateTime }" pattern="yyyy-MM-dd HH:mm:ss" /></td>
							</tr>
					    </c:forEach>
					   </c:if>
		
					</tbody>
				</table>
			</div>
		</div>
</div>

<c:if test="${result.code eq 'SUCCESS' }">
  
  <script type="text/javascript">

    Page.navigation('page', 'report/query/page/again/print', 'page:page', '${result.data.pageSize}', '${result.data.total}', '${result.data.pageCount}', '${result.data.currPage}', 'menuUrl');

  </script>
  
  <div id="page" class="page"> </div>

</c:if>

